import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpForm {
  id!: number;
  title!: string;
  type!: number;
  data!: unknown;
  addTime!: string;
  updateTime!: string;
  uniacid!: number;
  content?: unknown;
}

export const ImsYzdKpFormSchema = new EntitySchema({
  class: ImsYzdKpForm,
  properties: {
    id: { primary: true, type: 'number' },
    title: { type: 'string', length: 255 },
    type: { type: 'number', index: 'type' },
    data: { type: 'unknown', columnType: 'longtext' },
    addTime: { type: 'string', length: 255 },
    updateTime: { type: 'string', length: 255 },
    uniacid: { type: 'number', index: 'uniacid' },
    content: { type: 'unknown', columnType: 'longtext', nullable: true },
  },
});
